import request from '@/utils/request'

const prefix = process.env.NODE_ENV === 'production' ? '/' : '/api/'
// 所有流程列表
export function getProcessMsg(params) {
  return request({
    url: `${prefix}osflow/getProcessMsg`,
    method: 'get',
    params
  })
}
// 删除流程模型
export function deleteProcessDesigner(params) {
  return request({
    url: `${prefix}design/deleteProcessDesigner`,
    method: 'get',
    params
  })
}
// 所有表单模型列表
export function getFromMsg(params) {
  return request({
    url: `${prefix}osflow/getFormMessage`,
    method: 'get',
    params
  })
}
// 删除表单模型
export function deleteFormDesignConfig(params) {
  return request({
    url: `${prefix}design/deleteFormDesignConfig`,
    method: 'get',
    params
  })
}
// 用户待办
export function userTodo(userid) {
  return request({
    url: `${prefix}osflow/userTodo/{userid}`.replace('{userid}', userid),
    method: 'get'
  })
}
// 获取唯一ID
export function getUnnid() {
  return request({
    url: `${prefix}osflow/getUnnid`,
    method: 'get'
  })
}
